<?php

class Welcome extends Controller {

	function Welcome()
	{
		parent::Controller();	
		$this->load->helper('url');
		$this->load->library('upload');
	}
	
	function index()
	{
		$this->load->view('welcome_message');
	}
	
	function hello()
	{
		echo "hello,world!";
	}
	function hi(){
			$this->load->view('html/index');
		}
	function multiuploadview(){
		$this->load->view('multi_file_upload');
	}
	function doit(){
		//print_r($_FILES);exit;
		$this->load->library('upload');
		$userfile_data = $_FILES['userfile'];
		$a = $this->upload->do_upload_ex("userfile",$userfile_data,"/uploads/news/"); 
		print_r($a);exit;
		//$b=$this->upload2($a);
		//print_r($b);
	}
	

}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */